package day03;

/**
 * 演示逻辑运算符
 */
public class OperDemo3 {
    public static void main(String[] args) {
        int a = 5, b=8, c = 5;
        boolean d = a<b&&c>b;
        System.out.println(d);

        System.out.println(a<=c && b>a);
        System.out.println(a==b &&c>b);
        System.out.println(b!=c && b>a);

        int age =23;
        System.out.println(age>=18&&age<=50);

        boolean e = a>b && c++>5;
        System.out.println(e);
        System.out.println(c);

        int score = 87;
        System.out.println(score<0||score>100);

        boolean f = a<b||c++>5;
        System.out.println(f);
        System.out.println(c);

        boolean g = !(a<b);
        System.out.println(g);

    }
}
